<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="dsUchetProvKons" targetNamespace="http://tempuri.org/dsUchetProvKons.xsd" xmlns:mstns="http://tempuri.org/dsUchetProvKons.xsd" xmlns="http://tempuri.org/dsUchetProvKons.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="p301ConnString" ConnectionStringObject="" IsAppSettingsProperty="True" Modifier="Assembly" Name="p301ConnString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.p301.Properties.Settings.GlobalReference.Default.p301ConnString" Provider="System.Data.SqlClient">
          </Connection>
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="taUchetProvKons" GeneratorDataComponentClassName="taUchetProvKons" Name="dtUchetProvKons" UserDataComponentName="taUchetProvKons">
            <MainSource>
              <DbSource ConnectionRef="p301ConnString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Fill" GenerateShortCommands="False" GeneratorSourceName="Fill" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="False" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="True">
                    <CommandText>SELECT     ISNULL(bo_kons_.C_FAKT, 0) AS C_FAKT, ISNULL(bo_kons_.C_FAKT_KRIZIS, 0) AS C_FAKT_KRIZIS, ISNULL(bo_kons_.C_TEL, 0) AS C_TEL, 
                      ISNULL(bo_kons_.C_TEL_KRIZIS, 0) AS C_TEL_KRIZIS, ISNULL(bo_kons_.C_PISMO, 0) AS C_PISMO, ISNULL(bo_kons_.C_PISMO_KRIZIS, 0) 
                      AS C_PISMO_KRIZIS, ISNULL(bo_kons_.C_INET, 0) AS C_INET, ISNULL(bo_kons_.C_INET_KRIZIS, 0) AS C_INET_KRIZIS, ISNULL(bo_kons_.C_PERV, 0) 
                      AS C_PERV, ISNULL(bo_kons_.C_POVT, 0) AS C_POVT, ISNULL(bo_kons_.C_INDIV, 0) AS C_INDIV, ISNULL(bo_kons_.C_GRUP, 0) AS C_GRUP, 
                      ISNULL(bo_kons_.C_GRUP_LUDI, 0) AS C_GRUP_LUDI, s_rab.N_RAB, s_otd.N_OTD, ISNULL(bo_kons_.C_FAKT, 0) + ISNULL(bo_kons_.C_TEL, 0) 
                      + ISNULL(bo_kons_.C_PISMO, 0) + ISNULL(bo_kons_.C_INET, 0) + ISNULL(bo_kons_.C_PERV, 0) + ISNULL(bo_kons_.C_POVT, 0) 
                      + ISNULL(bo_kons_.C_INDIV, 0) + ISNULL(bo_kons_.C_GRUP, 0) AS C_ALL
FROM         bo_kons_ INNER JOIN
                      s_rab ON bo_kons_.K_RAB = s_rab.K_RAB LEFT OUTER JOIN
                      s_otd ON s_rab.K_OTD = s_otd.K_OTD
WHERE     (bo_kons_.K_KONS = @pK_KONS)
ORDER BY s_otd.N_OTD, s_rab.N_RAB</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="False" AutogeneratedName="pK_KONS" ColumnName="K_KONS" DataSourceName="p301.dbo.bo_kons_" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@pK_KONS" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="K_KONS" SourceColumnNullMapping="False" SourceVersion="Current">
                      </Parameter>
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="C_FAKT" DataSetColumn="C_FAKT" />
              <Mapping SourceColumn="C_FAKT_KRIZIS" DataSetColumn="C_FAKT_KRIZIS" />
              <Mapping SourceColumn="C_TEL" DataSetColumn="C_TEL" />
              <Mapping SourceColumn="C_TEL_KRIZIS" DataSetColumn="C_TEL_KRIZIS" />
              <Mapping SourceColumn="C_PISMO" DataSetColumn="C_PISMO" />
              <Mapping SourceColumn="C_PISMO_KRIZIS" DataSetColumn="C_PISMO_KRIZIS" />
              <Mapping SourceColumn="C_INET" DataSetColumn="C_INET" />
              <Mapping SourceColumn="C_INET_KRIZIS" DataSetColumn="C_INET_KRIZIS" />
              <Mapping SourceColumn="C_PERV" DataSetColumn="C_PERV" />
              <Mapping SourceColumn="C_POVT" DataSetColumn="C_POVT" />
              <Mapping SourceColumn="C_INDIV" DataSetColumn="C_INDIV" />
              <Mapping SourceColumn="C_GRUP" DataSetColumn="C_GRUP" />
              <Mapping SourceColumn="C_GRUP_LUDI" DataSetColumn="C_GRUP_LUDI" />
              <Mapping SourceColumn="N_RAB" DataSetColumn="N_RAB" />
              <Mapping SourceColumn="N_OTD" DataSetColumn="N_OTD" />
              <Mapping SourceColumn="C_ALL" DataSetColumn="C_ALL" />
            </Mappings>
            <Sources>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="taUchetProvKonsList" GeneratorDataComponentClassName="taUchetProvKonsList" Name="dtUchetProvKonsList" UserDataComponentName="taUchetProvKonsList">
            <MainSource>
              <DbSource ConnectionRef="p301ConnString (Settings)" DbObjectName="p301.dbo.vRepUchetProvKonsList" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Fill" GenerateShortCommands="False" GeneratorSourceName="Fill" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="False" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="True">
                    <CommandText>SELECT     C_OBRASCH, C_SEM, C_SEM_KONS, N_PERIOD, D_ZAP
FROM         vRepUchetProvKonsList
WHERE     (K_KONS = @pK_KONS)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="False" AutogeneratedName="pK_KONS" ColumnName="" DataSourceName="" DataTypeServer="unknown" DbType="Int32" Direction="Input" ParameterName="@pK_KONS" Precision="0" ProviderType="Int" Scale="0" Size="1024" SourceColumn="" SourceColumnNullMapping="False" SourceVersion="Current">
                      </Parameter>
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="C_OBRASCH" DataSetColumn="C_OBRASCH" />
              <Mapping SourceColumn="C_SEM" DataSetColumn="C_SEM" />
              <Mapping SourceColumn="C_SEM_KONS" DataSetColumn="C_SEM_KONS" />
              <Mapping SourceColumn="N_PERIOD" DataSetColumn="N_PERIOD" />
              <Mapping SourceColumn="D_ZAP" DataSetColumn="D_ZAP" />
            </Mappings>
            <Sources>
            </Sources>
          </TableAdapter>
        </Tables>
        <Sources>
        </Sources>
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="dsUchetProvKons" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="dsUchetProvKons" msprop:Generator_DataSetName="dsUchetProvKons">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="dtUchetProvKons" msprop:Generator_UserTableName="dtUchetProvKons" msprop:Generator_RowDeletedName="dtUchetProvKonsRowDeleted" msprop:Generator_RowChangedName="dtUchetProvKonsRowChanged" msprop:Generator_RowClassName="dtUchetProvKonsRow" msprop:Generator_RowChangingName="dtUchetProvKonsRowChanging" msprop:Generator_RowEvArgName="dtUchetProvKonsRowChangeEvent" msprop:Generator_RowEvHandlerName="dtUchetProvKonsRowChangeEventHandler" msprop:Generator_TableClassName="dtUchetProvKonsDataTable" msprop:Generator_TableVarName="tabledtUchetProvKons" msprop:Generator_RowDeletingName="dtUchetProvKonsRowDeleting" msprop:Generator_TablePropName="dtUchetProvKons">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="C_FAKT" msprop:Generator_UserColumnName="C_FAKT" msprop:Generator_ColumnVarNameInTable="columnC_FAKT" msprop:Generator_ColumnPropNameInRow="C_FAKT" msprop:Generator_ColumnPropNameInTable="C_FAKTColumn" type="xs:int" minOccurs="0" />
              <xs:element name="C_FAKT_KRIZIS" msprop:Generator_UserColumnName="C_FAKT_KRIZIS" msprop:Generator_ColumnVarNameInTable="columnC_FAKT_KRIZIS" msprop:Generator_ColumnPropNameInRow="C_FAKT_KRIZIS" msprop:Generator_ColumnPropNameInTable="C_FAKT_KRIZISColumn" type="xs:int" minOccurs="0" />
              <xs:element name="C_TEL" msprop:Generator_UserColumnName="C_TEL" msprop:Generator_ColumnVarNameInTable="columnC_TEL" msprop:Generator_ColumnPropNameInRow="C_TEL" msprop:Generator_ColumnPropNameInTable="C_TELColumn" type="xs:int" minOccurs="0" />
              <xs:element name="C_TEL_KRIZIS" msprop:Generator_UserColumnName="C_TEL_KRIZIS" msprop:Generator_ColumnVarNameInTable="columnC_TEL_KRIZIS" msprop:Generator_ColumnPropNameInRow="C_TEL_KRIZIS" msprop:Generator_ColumnPropNameInTable="C_TEL_KRIZISColumn" type="xs:int" minOccurs="0" />
              <xs:element name="C_PISMO" msprop:Generator_UserColumnName="C_PISMO" msprop:Generator_ColumnVarNameInTable="columnC_PISMO" msprop:Generator_ColumnPropNameInRow="C_PISMO" msprop:Generator_ColumnPropNameInTable="C_PISMOColumn" type="xs:int" minOccurs="0" />
              <xs:element name="C_PISMO_KRIZIS" msprop:Generator_UserColumnName="C_PISMO_KRIZIS" msprop:Generator_ColumnVarNameInTable="columnC_PISMO_KRIZIS" msprop:Generator_ColumnPropNameInRow="C_PISMO_KRIZIS" msprop:Generator_ColumnPropNameInTable="C_PISMO_KRIZISColumn" type="xs:int" minOccurs="0" />
              <xs:element name="C_INET" msprop:Generator_UserColumnName="C_INET" msprop:Generator_ColumnVarNameInTable="columnC_INET" msprop:Generator_ColumnPropNameInRow="C_INET" msprop:Generator_ColumnPropNameInTable="C_INETColumn" type="xs:int" minOccurs="0" />
              <xs:element name="C_INET_KRIZIS" msprop:Generator_UserColumnName="C_INET_KRIZIS" msprop:Generator_ColumnVarNameInTable="columnC_INET_KRIZIS" msprop:Generator_ColumnPropNameInRow="C_INET_KRIZIS" msprop:Generator_ColumnPropNameInTable="C_INET_KRIZISColumn" type="xs:int" minOccurs="0" />
              <xs:element name="C_PERV" msprop:Generator_UserColumnName="C_PERV" msprop:Generator_ColumnVarNameInTable="columnC_PERV" msprop:Generator_ColumnPropNameInRow="C_PERV" msprop:Generator_ColumnPropNameInTable="C_PERVColumn" type="xs:int" minOccurs="0" />
              <xs:element name="C_POVT" msprop:Generator_UserColumnName="C_POVT" msprop:Generator_ColumnVarNameInTable="columnC_POVT" msprop:Generator_ColumnPropNameInRow="C_POVT" msprop:Generator_ColumnPropNameInTable="C_POVTColumn" type="xs:int" minOccurs="0" />
              <xs:element name="C_INDIV" msprop:Generator_UserColumnName="C_INDIV" msprop:Generator_ColumnVarNameInTable="columnC_INDIV" msprop:Generator_ColumnPropNameInRow="C_INDIV" msprop:Generator_ColumnPropNameInTable="C_INDIVColumn" type="xs:int" minOccurs="0" />
              <xs:element name="C_GRUP" msprop:Generator_UserColumnName="C_GRUP" msprop:Generator_ColumnVarNameInTable="columnC_GRUP" msprop:Generator_ColumnPropNameInRow="C_GRUP" msprop:Generator_ColumnPropNameInTable="C_GRUPColumn" type="xs:int" minOccurs="0" />
              <xs:element name="C_GRUP_LUDI" msprop:Generator_UserColumnName="C_GRUP_LUDI" msprop:Generator_ColumnVarNameInTable="columnC_GRUP_LUDI" msprop:Generator_ColumnPropNameInRow="C_GRUP_LUDI" msprop:Generator_ColumnPropNameInTable="C_GRUP_LUDIColumn" type="xs:int" minOccurs="0" />
              <xs:element name="N_RAB" msprop:Generator_UserColumnName="N_RAB" msprop:Generator_ColumnVarNameInTable="columnN_RAB" msprop:Generator_ColumnPropNameInRow="N_RAB" msprop:Generator_ColumnPropNameInTable="N_RABColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="N_OTD" msprop:Generator_UserColumnName="N_OTD" msprop:Generator_ColumnVarNameInTable="columnN_OTD" msprop:Generator_ColumnPropNameInRow="N_OTD" msprop:Generator_ColumnPropNameInTable="N_OTDColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="C_ALL" msdata:ReadOnly="true" msprop:Generator_UserColumnName="C_ALL" msprop:Generator_ColumnPropNameInRow="C_ALL" msprop:Generator_ColumnVarNameInTable="columnC_ALL" msprop:Generator_ColumnPropNameInTable="C_ALLColumn" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="dtUchetProvKonsList" msprop:Generator_UserTableName="dtUchetProvKonsList" msprop:Generator_RowDeletedName="dtUchetProvKonsListRowDeleted" msprop:Generator_RowChangedName="dtUchetProvKonsListRowChanged" msprop:Generator_RowClassName="dtUchetProvKonsListRow" msprop:Generator_RowChangingName="dtUchetProvKonsListRowChanging" msprop:Generator_RowEvArgName="dtUchetProvKonsListRowChangeEvent" msprop:Generator_RowEvHandlerName="dtUchetProvKonsListRowChangeEventHandler" msprop:Generator_TableClassName="dtUchetProvKonsListDataTable" msprop:Generator_TableVarName="tabledtUchetProvKonsList" msprop:Generator_RowDeletingName="dtUchetProvKonsListRowDeleting" msprop:Generator_TablePropName="dtUchetProvKonsList">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="C_OBRASCH" msprop:Generator_UserColumnName="C_OBRASCH" msprop:Generator_ColumnVarNameInTable="columnC_OBRASCH" msprop:Generator_ColumnPropNameInRow="C_OBRASCH" msprop:Generator_ColumnPropNameInTable="C_OBRASCHColumn" type="xs:int" minOccurs="0" />
              <xs:element name="C_SEM" msprop:Generator_UserColumnName="C_SEM" msprop:Generator_ColumnVarNameInTable="columnC_SEM" msprop:Generator_ColumnPropNameInRow="C_SEM" msprop:Generator_ColumnPropNameInTable="C_SEMColumn" type="xs:int" minOccurs="0" />
              <xs:element name="C_SEM_KONS" msprop:Generator_UserColumnName="C_SEM_KONS" msprop:Generator_ColumnVarNameInTable="columnC_SEM_KONS" msprop:Generator_ColumnPropNameInRow="C_SEM_KONS" msprop:Generator_ColumnPropNameInTable="C_SEM_KONSColumn" type="xs:int" minOccurs="0" />
              <xs:element name="N_PERIOD" msdata:ReadOnly="true" msprop:Generator_UserColumnName="N_PERIOD" msprop:Generator_ColumnVarNameInTable="columnN_PERIOD" msprop:Generator_ColumnPropNameInRow="N_PERIOD" msprop:Generator_ColumnPropNameInTable="N_PERIODColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="D_ZAP" msprop:Generator_UserColumnName="D_ZAP" msprop:Generator_ColumnVarNameInTable="columnD_ZAP" msprop:Generator_ColumnPropNameInRow="D_ZAP" msprop:Generator_ColumnPropNameInTable="D_ZAPColumn" type="xs:dateTime" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
  </xs:element>
</xs:schema>